package com.charon.config;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.server.EnableConfigServer;

@SpringBootApplication
//注册当前项目为ConfigServer
@EnableConfigServer
//注册当前项目为EurekaClient
@EnableDiscoveryClient
//关闭数据库自动配置
@EnableAutoConfiguration(exclude = DataSourceAutoConfiguration.class)
public class CharonConfigApplication {

    public static void main(String[] args) {
        SpringApplication.run(CharonConfigApplication.class, args);
    }

}

